package com.person.mengshuai.mytestdemo.exception.base;

/**
 * 自定义业务异常
 *
 * @author 孟帅
 * @since 2024/1/10
 */
public class BusinessException extends Exception{
    /**
     * 异常消息
     */
    protected final String message;

    /**
     * 业务异常
     */
    public BusinessException(String message){
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
